package com.jdrx.sw.sewage.dao;

import com.jdrx.sw.sewage.beans.dto.DevStorageDTO;
import com.jdrx.sw.sewage.beans.dto.DevStorageTypeQueryDTO;
import com.jdrx.sw.sewage.beans.vo.DevStorageTypeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * Created by generator on 2020-10-12.
 */
@Mapper
public interface DevStorageTypeDAO {

    List<DevStorageTypeVO> selectByPage(DevStorageTypeQueryDTO devStorageTypeQueryDTO);

    void deleteById(@Param("storageTypeId") Long storageTypeId);

    DevStorageTypeVO findDevStorTypeByMatIdAndCatIdAndDossierSpec(DevStorageDTO devStorageDTO);

    void add(DevStorageDTO devStorageDTO);

    Long selectNextId();

    void update(@Param("attach") String attach,
                @Param("id") Long id,
                @Param("factoryIds") String factoryIds);

    DevStorageTypeVO findByPlcLogicPoint(@Param("plcLogicPoint") Integer plcLogicPoint);
}